package com.ustc.hewei.nettyrpc2_0.common.config;

import java.io.IOException;
import java.util.Properties;

/**
 * @author hewei
 * @version 1.0
 * @description: TODO
 * @date 2022/11/24 20:50
 */

public class PropertyFactory {
    private static final Properties properties = new Properties();

    static {
        try {
            properties.load(PropertyFactory.class.getClassLoader().getResourceAsStream("nettyRPC.properties"));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static Properties getProperties() {
        return properties;
    }

}
